package Model
{

	[Bindable]
	public class ContactInfo
	{
		private var _name:String;
		private var _address:Address;
		
		public function ContactInfo()
		{
			this._name = "";
			this._address = new Address();
		}

		public function get name():String
		{
			return _name;
		}

		public function set name(value:String):void
		{
			_name = value;
		}

		public function get address():Address
		{
			return _address;
		}

		public function set address(value:Address):void
		{
			_address = value;
		}
		
		public function  requiredDataisEntered():Boolean
		{
			if(this.address.requiredDataIsEntered() && this.name != "")
				return true;
			return false;
		}

	}
}